<?php require_once(HResponse::path() . 'common/header.html'); ?>
    <link href="<?php echo HResponse::uri(); ?>css/inner.css?3=4" rel="stylesheet" type="text/css" media='all' />
    <script src="<?php echo HResponse::uri(); ?>common/mobile.js"></script>
    <script type="text/javascript" src="<?php echo HResponse::uri(); ?>common/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="<?php echo HResponse::uri(); ?>common/script.js"></script>
</head>
<body>
<?php require_once(HResponse::path() . 'common/top.html'); ?>
<div id="bannerabout">
    <h2><?php echo HResponse::getAttribute('ParentName'); ?></h2>
    <img src="<?php echo HResponse::getAttribute('bannerImage'); ?>" />
</div>
<div class="wrapper clearfix">
    <div class="m_h2"><?php echo HResponse::getAttribute('ParentName'); ?></div>
    
    <?php if(I('parent_id')==734){ ?>
    <div class="m_pro_list">
        <?php $list = HResponse::getAttribute('list'); ?>
        <?php foreach($list as $key =>$item) { ?>
        <div class="p2 nofirst<?php echo $key+1; ?>">
            <a href="/<?php echo     substr(substr($item['content'],strripos($item['content'],"/static")+1),0,strrpos(substr($item['content'],strripos($item['content'],"/static")+1),"&quot; title"))   ; ?>"   target="_Blank" ><figure>
                <div class="item">
                  <img src="<?php echo HResponse::touri($item['image_path']); ?>" alt="<?php echo $item['name']; ?>"  />
                    <div class="info-mask">
                    </div>
                </div>
                <figcaption><?php echo $item['name']; ?></figcaption>
            </figure>
            </a>
        </div>
        <?php } ?>
    </div>
    <?php } else { ?>
    <div id="newslist">
        <?php $list = HResponse::getAttribute('list'); ?>
        <?php foreach($list as $item) { ?>
        <div class="item clearfix">
            <div class="time">
                <a href="<?php echo HResponse::url('article', 'id=' . $item['id']); ?>" title="<?php echo $item['name']; ?>">
                    <img src="<?php echo HResponse::touri($item['image_path']); ?>" alt="<?php echo $item['name']; ?>"  />
                </a>
            </div>
            <div class="list">
                <h4><a href="<?php echo HResponse::url('article', 'id=' . $item['id']); ?>" title="<?php echo $item['name']; ?>"><?php echo $item['name']; ?></a></h4>
                <p>
                    <?php echo $item['tags']; ?>
                </p>
                <a href="<?php echo HResponse::url('article', 'id=' . $item['id']); ?>" title="<?php echo $item['name']; ?>"><div class="more_nesw">Read More</div></a>

            </div>
        </div>
        <?php } ?>
    </div>
    
    <!--<div id="newslist_n">
    	<div class="item_m clearfix">
        	<div class="newslist_n_ht">Recent Articles</div>
            <?php $newsList = HResponse::getAttribute('news_list'); ?>
            <?php foreach($newsList as $item) { ?>
            <div class="list_t">
                <h4><a href="<?php echo HResponse::url('article', 'id=' . $item['id']); ?>"
                       title=""><?php echo $item['name']; ?></a></h4>
                <div class="pt_t"><?php echo $item['create_time']; ?></div>
            </div>
            <?php } ?>
            <div class="shent_ma">
            	<a href="#" class="shent_ie Share_img">Share</a>
                <a href="#" class="shent_ie Tweet_img">Tweet</a>
                <a href="#" class="shent_ie Pin_img">Pin it</a>
            </div>
        </div>
    </div>-->
    <?php } ?>


    <div class="clear"></div>
    <div class="page"><a href="javascript:void(0);" class="navigation previous" rel="prev"><</a>
        <?php for($i = 1; $i <= HResponse::getAttribute('totalPages'); $i++) { ?>
        <a href="<?php echo HResponse::url('article', 'parent_id=' . I('parent_id') . '&page=' . $i); ?>" class="<?php if($i == I('page') || ($i == 1 && I('page') <= 1)) { ?>current<?php } ?> "><?php echo $i; ?></a>
        <?php } ?>
        <a data-page="<?php echo HResponse::getAttribute('totalPages'); ?>" href="javascript:void(0)" class="navigation next disabled" rel="next">></a></div>
    <div class="m_pro_list3" style="padding:0"><ul id="cMoreList" class="clearfix"></ul></div> <div class="clear"></div>
    
</div>
<?php require_once(HResponse::path() . 'common/footer.html'); ?>
<script>
    var parentId = "<?php echo I('parent_id'); ?>";
</script>
<script src="<?php echo HResponse::uri() . 'common/news-list.js'; ?>"></script>
</body>
</html>